<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'out.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
	 ul li{
	  list-style: none;
	  font-size:40px;
	  color:red;
	  border:2px solid green;
	 }
	</style>
  </head>
  
  <body>
    <h1>out demo</h1>
    <%
     String[]ar={"赵华强","向华强","龙五","湾仔扛把子","铜锣湾扛把子"};
     for(String s:ar){
       out.print("<h1>"+s+"</h1>");
     }
   
     %>
     <ul>
     <%
      for(String s:ar){
      %>
      <li><%=s%></li>
      <%} %>
     </ul>
  </body>
</html>
